package com.example.tutobdd;

import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by richard on 05/02/14.
 */
public class BDD {
    BDDHelper helper;
    SQLiteDatabase base;

    public void open( Context activity) throws SQLException {
        helper  = new BDDHelper(activity);
        base = helper.getWritableDatabase();
    }

    public Cursor getinfos() {
        return base.rawQuery("SELECT _id, info FROM infos",null);
    }
}
